<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        body {
            background-color: #ccc;
        }
        
        .fatherdiv {
            width: 300px;
            height: 100px;
            background-color: orange;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .sondiv {
            width: 33.3333%;
            height: 30%;
            background-color: #eee;
            margin-top: 20px;
            overflow: hidden;
            /* white-space: nowrap; */
            text-overflow: ellipsis;
        }
        
        .box_contain {
            background-color: brown;
            overflow: hidden;
        }
        
        .child {
            width: 50px;
            height: 50px;
            float: left;
        }
        
        .box1 {
            background-color: red;
        }
        
        .box2 {
            background-color: green;
        }
        
        .wrap {
            width: 100px;
            height: 50px;
            background-color: blue;
        }
    </style>
</head>

<body>
    <!-- overflow:hidden探索 -->

    <!-- 超出裁剪 -->
    <div class="fatherdiv">
        <div class="sondiv">
            测试内容测试内容测试内容测试内容测试内容测试内容测试内容测试内容测试内容测试内容测试内容测试内容测试内容测试内容
        </div>
    </div>

    <div class="box_contain">
        <div class="child box1"></div>
        <div class="child box2"></div>
    </div>
    <div class="wrap"></div>
</body>

</html>